import { createRouter,createWebHistory} from "vue-router";

const router = createRouter({
    history: createWebHistory(),
    routes:[
        {path: '/', component: () => import('./views/Home.vue')},
        {path: '/login', component: () => import('./views/Login.vue')},
        {path: '/register', component: () => import('./views/Register.vue')},
        {path: '/students/edit/:id', component: () => import('./views/StudentEdit.vue')},
        {path: '/students', component: () => import('./views/StudentListView.vue')},
        {path: '/Profile', component: () => import('./views/StudentProfile.vue')}
    ]
})

export default router;